package com.yue.se.event.spring_event;

import org.springframework.context.ApplicationEvent;

/**
 * 功能描述: TODO <br/>
 * 创建时间: 2016/8/1<br/>
 *
 * @author QiuYang
 */
public class EmailEvent extends ApplicationEvent {

    // 事件相关的属性
    private String address;
    private String text;

    public EmailEvent(Object source, String address, String text) {
        super(source);

        this.address = address;
        this.text = text;
    }

    public EmailEvent(Object source) {
        super(source);
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
}
